package com.device_manager.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShipmentDTO {
    //发货设备信息
    private List<DeviceDTO> devices;
    //箱子信息
    private List<BoxDTO> boxes;
    //发货单号
    private String ShipmentOrder;
    // 发货人
    private String Shipper;
    // 收货人
    private String receiver;
    //发货的设备数量
    private int DeviceCount;
@Data
@AllArgsConstructor
@NoArgsConstructor
    public static class DeviceDTO{
    //发货设备号
        private String deviceMac;
    //设备类型
        private String deviceType;
    //设备所在的箱子号
        private String boxNumber;
        //
    }
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class BoxDTO{
        //箱子号
        private String boxNumber;
        //箱子标识
        private String boxFlag;
        //箱子所装设备总数
        private int totalDeviceCount;
    }
}
